Per https://swi-prolog.discourse.group/t/wiki-discussion-swi-prolog-in-the-browser-using-wasm/5651/169?u=jeswr we should be perserving the file name in the `generate-image` utilities.