minor fixes in canvasrenderer and cleanup of the code for the mouse interpolation