downcase extname when we determin whether it's a image

Downcase the extname, so the methods such as image? can determine properbly