Fixed an error, not using the affinetransform with the Polygon.