fixed small bug with new image caching