program-wide caching of images