Added support for images with uppercase file extensions in the image selector

When uploading images with an uppercase file extension, the image preview in the selector did not work.