The judge of said court shall have the power to impose fines of not more than $100.00 on, or to imprison for not longer than twenty-four hours, any person guilty of contempt of court. Such fines shall be paid into the county treasury or depository to be used for county purposes.