Fix for Gallery Issue with uppercase Extension