Specifying size of canvas, to improve performance