Actually extract the images from the document