small improvements to ImageEditor and TextEditor