Undo working. Cursor errors around the edges of the canvas fixed.