Generated CSV relatedImages entries can be incorrect when containers reuse images or names. Preserve the established output contract: an image referenced under different names is listed once with an empty name and a warning; distinct images sharing a name must remain distinguishable. Already-unique names should remain unchanged.