Setting the stage for indexedDB caching of images