drawing line segments & quadratics in svg