Crop and rotate an image

Crop to any shape, turn it the right way up, or mirror it.