add file based caching for images