Added code to check image orientation and fix
Merge pull request #14 from mpetkova/ImageRotateFix

Added code to check image orientation and fix