Remove all the raster data outside a rectangular region that is aligned at any angle, while preserving the rotation angle of the original image.