Better handling of the sheet when it is skewed outside the frame