Smoothing out curves from the mouse