Builds a Quad from four points in arbitrary order by sorting them clockwise around their centroid, starting from the corner closest to the image's top-left.