Add caching for images