Fixed a bug in the cache images