add rect feature
Solved WM_PAINT performance issue