Fix up the generate thumbnail