use downcase string for extname
determine image with downcase extname
Merge pull request #295 from yandy/patch-1

downcase extname when we determin whether it's a image