Removed rendering logic from polygons.js