Support upper case image extensions

e.g.: XXX.JPG
Merge pull request #3 from kou/support-upper-case-image-extensions

Support upper case image extensions

Patch by Kouhei Sutou. Thanks!!!!!