make the canvas size to be the size of window