restructured image memory cache, using LRU Cache