create a polygon using core graphics