Fix for thumbnail generation v2.