In the message editor, the behavior varies depending on whether you use the icon marked in green in the screenshot to insert images or the button marked in red. In my test, it worked correctly with the green icon (image not rotated). With the red button, I ended up with images rotated by 90° or...