implemented caching for cell images