Added image caching.