adjust the cache to save user image and other images