Each board of elections shall fix the compensation for rent, light and janitorial services to be paid for the use of polling places for primaries and elections, within the legislative district, but no compensation for rent or light shall be paid in the case of schoolhouses or other public buildings used as polling places.