Every court before whom any person shall be convicted upon an indictment or information for an offense not punishable with death or imprisonment in the penitentiary may, in addition to the punishment prescribed by law, require such person to recognize with sufficient sureties in a reasonable sum to keep the peace, or to be of good behavior, or both, for any term not exceeding one year, and to stand committed until he or she shall so recognize.