Generate the thumb_url for each direntry