Improved image caching when using multiple images