All offenses under this act are declared to be misdemeanors and in default of payment of any penalty or cost by the party or parties sentenced to pay the same, he or they may be imprisoned for a period not exceeding three months and not less than thirty days.
52 P.S. § 70-1304