This needs to check if the image is actually inside a frame that is embedded in the text as-char, just checking for image might not be enough, because this could be also an image in a non-embedded frame, no?
``` && odfUtils.isCharacterFrame(range.endContainer.parentNode)```