I try to place an image at the place of a text. I create a new <w:p> element containing image and replace at the place of previous <w:p> image containg text.I generate the output docx and the format looks perfect in a xml editor.The docx does open in Microsoft word and recognizes a blank picture. The actual image does not appear.
If I edit the original w:document manually, it works. dox4j library has added <v:shapetype ...