medialibrary: Generate thumbs in the background