[functions] Fix syntax error on thumbnail functions