updated code for new updated DrawPolygon service