My code assumes that the picture is "inserted and linked" to an external file (the image file path). Without that path, I don't think that LoadImage will work.