Working script to extract video thumbnails. Not polished.