Add imagick check for exif data and set $rotation correctly