adds support for images not in 'Up' orientation before scaling