title: Convert shape in powerpoint to image and save
body: <p>I have a Powerpoint presentation with images. On each of the image is a straight line (connector) and a circle drawn by hand (shape).
  [<em>medical image with highlited features</em>]</p>
  <p>My goal is to extract image, line and the circle as a separate pictures (.jpeg). I am able to extract the image, but I fail to do so with the rest.</p>
  <p>This is what works with the image:</p>
  <pre><code>ultrasound = shape.image
  image_bytes = ultrasound.blob
  with open(path, 'wb') as f:
      f.write(image_bytes)
  </code></pre>
  <p>Of course when I try the same with the line and shape, I get an error:</p>
  <blockquote>
  <p>AttributeError: 'Shape' object has no attribute 'blob'</p>
  <p>AttributeError: 'Connector' object has no attribute 'blob'</p>
  </blockquote>
  <p>I suppose there should be a way, because I when I right-click on the line/shape, there is an option <em>Save As Picture...</em></p>