A photo collage consists of seven equal-sized square photos arranged in a row to form a rectangle. If the total area of the collage is 567 square inches, what is the length of the collage?