Remove canvasSize_ property
Don't set the canvas size too early