Add rotation to cropping. In core, set the default behaviour to rotate based on the rotation in the header.