Add extension to cached files

Without an extension TiBlob doesn't know what kind of file is and for images
we cannot access width/height