Fixed bug with handling files with no EXIF data tags

Signed-off-by: Falko Zurell <falko.zurell@gmail.com>
Merge branch 'refs/heads/fix_new_image_types'