Section 102. If a town votes under section twenty-one to have its selectmen act as a board of health, the selectmen may appoint an inspector of health, who shall assist the selectmen in the performance of their duties as such board.