Section 26. If, within one year after removal of said obstruction, the premises are again obstructed as above defined, the captain of police or marshal or chief of police shall have the same power of removal as provided in the preceding section, and in addition the owner or agent when such second order of removal is given, either by personal service or by posting on the building, shall be punished by a fine of not less than two hundred and fifty nor more than five hundred dollars, and the amount of said fine shall be a lien upon said building and be collected in like manner as provided in the preceding section. And for every subsequent obstruction as above defined, at any time within two years of the giving of the second notice, as above provided, said officers shall have the same powers as provided in the preceding section for removing the obstructions, and the owner or agent at the time such third or subsequent order of removal is given, either by personal service or by posting on the building, shall be punished by a fine of not less than five hundred nor more than one thousand dollars or may be punished by imprisonment for one year, and the amount of said fine shall be a lien upon the said building, and shall be collected in like manner as above provided. Obstructions as above defined, erected more than two years after the giving of the notice of the third offence, shall be construed to be a first offence under this section.