add image caching class