Section 12. A town which accepts this section, or has accepted corresponding provisions of earlier laws, by a two thirds vote at an annual meeting, may purchase or lease land, and erect, alter, enlarge, repair and improve buildings for public baths and wash houses, either with or without open drying grounds, and may make open bathing places, provide them with the requisite furniture, fittings and conveniences and provide instruction in swimming. Such town may establish rates for the use of such baths and wash houses, and appoint officers therefor, and may make by-laws for the government of such officers, and authorize them to make regulations for the management thereof and for the use thereof by non-residents of said town.