BUGFIX: Translate to lower case before check image extension.

By default, we can upload an image names "IMG1303.JPG" or "IMG123.jPG".