1. An image processing apparatus comprising: an acquiring unit configured to acquire information regarding a set of frames that is associated with a condition indicating a relative relationship between a set of images to be arranged in the set of frames; an extracting unit configured to extract the set of images from a plurality of images, wherein the set of images extracted satisfies the condition that is associated with the information regarding the set of frames; and an arranging unit configured to arrange the set of images extracted by the extracting unit in the set of frames corresponding to the information acquired by the acquiring unit.