Corrected the processing of the images on caching