Fixes to thumbnail generation.

Signed-off-by: Difegue <sugoi@cock.li>