Removed case sensitivity for file suffixes

This PR removes case sensitivity causing problems when having pictures with suffixes like "JPG", "GIF" or "PNG".
The tradeoff, however, is the increased ugliness of the thumb-filenames, since the original file suffix is preserved - but I think we can live with that... :)
Hope you like it!