dynamic size of the canvas element