Open

Description
I am using python-docx (python 3) to automatically generate and edit MS word document.
I see there are functions to add and replace text, but how about picture? The add_picture function only add picture in the end of the document.
For example, suppose I have a existing document (test.docx) with 2 pages. I want to:
- add a picture on page 1, before paragraph('Figure 1: Example Figure') --- actually, this paragraph is the caption of the figure.
- In the future, replace this picture by a new picture.
Can anyone please show me how to do it?