added file caching to image loader.