Draw a rectangle from point (x1,y1) to (x2,y2)