All fees and penalties collected or received by the board of health or a board officer acting in an official capacity shall be paid to the city treasurer for use by the city.