Added spline interpolation of mouse points.