Add width and height attribute to canvas