This function might not return a 4096 by 4096 data array due to the nature of rotating and scaling the image. This would be nice to be included in the package to solve this issue and always return the same shape.