Small change to canvasrenderer.js