Add rectangle tool.
Add single-undo and clear actions.