Adding drawRectangle to canvas