Caching of images in memory was added.