If your PM doc included images, you’re likely posting them to some backend service when nodes are created in the doc, and deleting them when the nodes are deleted.
What about delete image and then undo?
When first creating the node there will be either a file input event or a drag/drop event, so there’s your image data to upload, but with undo you don’t get that.
I guess one solution is simply don’t delete the image. Maybe schedule it for deletion sometime later?
Simple things are never as simple as you think they are : )