Fees for inspections and the issuance of permits or certificates or copies thereof required or issued under the provisions of this chapter shall be collected by the building inspector in advance of the issuance of such permits or certificates. The amount of such fees shall be established by the city council, from time to time, and shall cover the cost of inspection and supervision resulting from the enforcement of this chapter. The fees shall be deposited with the city clerk.