added closePath to polygonRing() method