Fixed support for image rotation after resize