More img types, support capital letters

Now works from JPG etc