automatic sizing and resizing of the canvas