adjust the canvas.width