Sort:  

I've used it quite a few times without a problem; I don't know why it deleted everything today. Another user pointed out that it replaces all the highlighted text with the picture. But I'm confident there was nothing highlighted.

hmmm. seems saving first is the way to go then. thanks @shenanigator :-)