Updated thumbnail generation