A rectangular photo frame covers an area of 20 square inches on a wall. The width of the frame is 1 inch less than its length. Find the length and width of the photo frame.