How to add image to docx programmatically

I need to programmatically add image to the place where cursor is pointing now. A have a File object (or arraybuffer, URL, etc of image).
Looks like addImageContentTool just fires the manual adding of image, but doesnt provide any method to automate this process, accepting File object.

Hi there,

We don’t currently have the API within the addImageContentTool to add the image using a file object.

You could alternatively use our rubber stamp tool to place a custom stamp/image at your mouse location as an annotation.

Best regards,
Kevin Kim