Split off cropping functionality into a separate module.