Prevent the canvas from growing unboundedly