1) Implement delete action;
2) Disable right click event;
3) Add more global colors;
4) Tidy the XRect insertion code.