Use indexeddb via promisedb to cache thumbnails