Added support for drawing on the canvas