title: Extract image position from .docx file using python-docx
body: <p>I'm trying to get the image index from the .docx file using <a href="https://python-docx.readthedocs.io/en/latest/" rel="noreferrer">python-docx</a> library. I'm able to extract the name of the image, image height and width. But not the index where it is in the word file </p>
  
  <pre><code>import docx
  doc = docx.Document(filename)
  for s in doc.inline_shapes:
      print (s.height.cm,s.width.cm,s._inline.graphic.graphicData.pic.nvPicPr.cNvPr.name)
  </code></pre>
  
  <p>output</p>
  
  <pre><code>21.228  15.920 IMG_20160910_220903848.jpg
  </code></pre>
  
  <p>In fact I would like to know if there is any simpler way to get the image name , like <em>s.height.cm</em> fetched me the height in cm. My primary requirement is to get to know where the image is in the document, because I need to extract the image and do some work on it and then again put the image back to the same location</p>