Corrected an image caching error