Taking of emergency action. If, in the opinion of the Zoning Enforcement Officer or the Building Inspector, as applicable in the case of building construction, a violation exists which requires immediate action to avoid a direct hazard or imminent danger to the health, safety or welfare of occupants of a building or to other persons, the Zoning Enforcement Officer or Building Inspector, as applicable, may direct such violation to be immediately remedied or may take direct action on his own initiative to abate the hazard. Any costs incurred by such action shall be paid for by the owner, occupant or person responsible for the violation. The Zoning Enforcement Officer or Building Inspector, as applicable, shall keep on file an affidavit stating with fairness and accuracy the items of expense and date of execution of action taken, and is furthermore authorized to institute a suit, if necessary, against the person liable for such expenses, in order to recover the said costs.