Polygons are drawn on mouse click