[AD] Avoid async query to get thumbnail data

This fixes #12 by just executing the query synchronously on our own thread
instead of using an async query which requires a looper.