Fix call to generate_thumbnail.