Fixed bug with the caching images