`generate_thumbnail`