Don't set the canvas size too early