The open [IMG]
tag would definitely do something like this as BB code is not parsed within an image tag (and all tags are implicitly closed at the end of a post). That looks like the cause, so this isn't unexpected.
If you have a separate issue, you should report it in a separate thread, though the examples here are likely a Chrome/browser issue than anything XF related.