Fixed dynamic resize and scale of canvas.