For each violation of the provisions of this chapter, the owner, agent, lessee or contractor or any other person who commits, takes part in or assists in any such violation shall be liable upon conviction thereof in a summary proceeding to pay a fine of not less than $200 nor more than $1,000 for each offense, together with the costs of prosecution. Each day or portion thereof in which a violation exists shall be considered a separate violation of this chapter, and each section of this chapter which is violated shall be considered a separate violation. In default of payment of such fine, such person shall be liable to imprisonment for a period not exceeding 30 days.