Clean getCanvas method, changing example variable to canvas.