Images deleted if no text after.

Images are not loaded when the document is saved and reopened.

The ruler is redrawn with the most recently used colour, not black.

