Stitch the rectangles together