Filter jpeg files with mimetypes package

Now we will also use images with '.jpeg' extension instead of using just
files with '.jpg'.
Normalize jpeg filename extension

As bundler does not process jpeg files ending with other filename
extension than '.jpg', we modify extension accordingly if necessary.
This is hopefully only temporary measure until bundler filename handling
gets fixed.