Automatically detect the file extension on an image by image basis

The plugin now detects the file extension on an image by image basis, instead of relying on a single extension specified in the defaults or by the user.

I had a situation where I had both `.jpg` and `.png` files that I needed to display in a single Justified-Gallery.