Any person who violates any provision of this chapter shall, upon conviction thereof, be sentenced to pay a fine of not less than $100 nor more than $1,000 and costs of prosecution, or, in default of payment of such fines and costs, to undergo imprisonment of not less than 10 days nor more than 30 days. Provided, each violation of any provision of this chapter and each day the same is continued shall be deemed a separate offense. For purpose of this section, the doing of any act or thing prohibited by any provision of this chapter, or the failure to do any act or thing as to which any provision of this chapter creates an affirmative duty, shall constitute a violation of this chapter, punishable as herein stated.