added factor to polygon to svg method