Caching

File and memory caching of images.