Added canvas functions to canvasrenderer

Added canvas functions to canvasrenderer