If you are asking how to import XML that displays an image, this should not be a big problem.
How you store the image, I'm not sure though, but I think you will have to import it with the correct name somewhere inside .docx, but I assume that you know this by reading the message.
Replacing placeholder with xml image thingy is easy
var parent = placeholder.Parent;
parent.ReplaceChild(imageXML, placeholder);
thingy , , . , run, , , .
, XML , , . , Drawing/Inline/Graphic root.