The person upon whom any fine or penalty is imposed, upon order of the court before which the conviction is had, may be imprisoned until the fine, penalty and costs are paid. No imprisonment, however, shall exceed six months for any one offense.
(1994 Code, § 10.20)