Corrected thumbnail generation.
Remove debug, we've found the issue.