thumbnail generation impuvement