var slide = presentation.Slides[0]; // Change the index to select a different slide
// Iterate through shapes to find the image
foreach (var shape in slide.Shapes)
{
if (shape is IPictureFrame)
{
// Cast the shape to PictureFrame
var pf = (IPictureFrame)shape;
}
}