I'm also having trouble getting custom images to actually appear, as images and not just files, I don't know if you're aware of this issue?
Ah okay, that wasn't clear.
Image files must have one of the following file extensions to be considered image files for the image system: png, jpg, webp.
The game only uses the race names as tags by default, but the improved random portraits adds more tags and complexity to tagging (https://itch.io/post/4938907). There is also a strange problem with the mod where it will not choose an image if it is the only possible image available for a specific set of necessary filters.
Very rarely images can be saved with non-standard data formats within those file extensions, which can be difficult to track down but it will produce errors that are visible using the Debug mod; this probably happens when using very old software.