Any person who shall violate any provisions of this chapter shall, upon conviction thereof, be sentenced to pay a fine of not more than $1,000 and costs of prosecution and, in default of payment of such fine and costs not caused by indigency, to imprisonment for not more than 30 days.