BUGFIX: Translate to lower case before check image extension.