If the extension from the filename is not correct, the mimetype retrieved is incorrect and eog doesn't display the image and the thumbnail.
In this merge request, we guess the mimetype from the data and try a second time to load the image and generate the thumbnail ourselves.
Fixes #25 (closed).