CachedImage: coding style