Fix for allowing the current cache to properly work with images which does not have the same internal format and extension (e.g. PNG internal format and .JPG extension).
Merge pull request #57 from LaurentiuMM/master

Caching images having a different internal format vs file extension