When using the dynamic dialogue and the random pilot selectors like castDef_TeamPilot_Random and castDef_TeamPilot_Random_xxx - the portraits are black for mod loaded portraits.
Normal portraits in the game show fine when selected with this approach though.
Investigate.