added width and height properties to canvas object