added polygon to svg method