Handling cases where filename is uppercase

This fixes an issue where `photo_admin_thumbnail.jpg` would match and thus not display in the list whereas `photo_admin_thumbnail.JPG` would display in the directory listing (and also create `photo_admin_thumbnail_admin_thumbnail.JPG` in the process)