added quadraticCurves for smoother lines