Changed CImage class to CachedImage.