[ndr:base:embed] Improve thumbnails extraction (closes #23731)