ImageData.fit_image_to_shape method. Fits the image data to Shape frame so that the aspect ratio of the image data matches the aspect ratio of Shape frame.... doc = aw . Document () builder = aw . DocumentBuilder... insert_shape ( shape_type = aw . drawing . ShapeType . RECTANGLE...