gen-profile: Remove unused make_thumbnail function

This was a bug and even broke the script with some shells, such as Bash.