title: Open XML SDK - AddImagePart - Change image location from /media to /word/media
body: <p>I am trying to insert an image into a document from C# using the Open XML SDK 2.5. The document is subsequently going to be uploaded to Google Drive and converted to a Google Document.</p>
  
  <p>I am currently using the <a href="http://msdn.microsoft.com/en-us/library/cc536156.aspx" rel="nofollow">MainDocumentPart.AddImagePart</a> method which inserts the image into the <code>/media</code> folder of the file hierarchy. However, Drive only wants to read the image if it is located in the <code>/word/media</code> folder.</p>
  
  <p>Opening the document in Microsoft Word and saving it again relocates the image to the <code>/word/media</code> folder (and updates the part relationships), and thus makes Drive able to read the image, but the file is not going to be edited in Word before being uploaded to Drive.</p>
  
  <p>Is there any way to place the image in the <code>/word/media</code> folder, short of closing the file in Open XML SDK, opening it up as a zip-archive, relocating the images and updating the relationships manually?</p>