Fix require_once to import imagine properly and add mobile device support

Add mobile device support. Picture taken from mobile device (such as Android, iOS or event a simple camera) were rotated (90° or -90°) using `$this->Media->image` helper, in order to display our thumbnail.
Fix this issue by checking the EXIF headers and returning the correct angle to apply in order to get the image rotated normally.