modify draw rect method,confirm give the left-top point and right-bottom point