After recent changes, (English) Wiktionary entries practically never have a page image, because images normally belong to one h2 section, even when there is only one.
https://en.wiktionary.org/w/index.php?title=Wikipedia&action=info shows the Wikipedia logo since I moved it to the top, but e.g. https://en.wiktionary.org/w/index.php?title=keny%C3%A9r&action=info has nothing.
The proper solution is to revert whatever change hardcoded the section 0 filtering and to fix T95026: PageImages should be able to pick Wikidata's P18 as chosen image instead. However, if we really want to go the way of hard-coding wiki-specific content assumptions into the code, then it would be better for the extension to have a configuration switch for this, to be altered for Wiktionary and others (the current default was thought for the [English] Wikipedia).