bug fix when the image with a upper-case extname
Merge pull request #10 from ivershuo/master

bug fix when the image with a upper-case extname