Refactored image adjustment logic

Created ImageUtils for maintainability and making it structured, because
it was spaghetti code. Preperation for Exif-orientation support.
Added support for the Exif orientation flag

Reads the Exif-data orientation flag, than rotates and translates it
according to this.
General cleanup and improvements