Fixed #32
Inserting an image loses the attributed and won't apply to text being typed after the image