SVG elements (line and ellipse) made polymorphic