Change how we get the median X and Y of 2 rects