1. An image processing apparatus comprising: an acquiring unit configured to acquire a condition associated with a set of frames, wherein the condition indicates a relationship between each piece of attribute information of images to be arranged in the set of frames; an arranging unit configured to arrange a set of images which meets the condition associated with the set of frames; a changing unit configured to change, in response to a user's instruction, one arranged image of the set of images to a different image in the set of images which meets the condition associated with the set of frames; a confirmation unit configured to confirm, in a case where the one arranged image is changed to the different image by the changing unit, whether or not the user intends to rearrange an arranged image in a frame other than a frame in which the different image is arranged, wherein the confirmation unit presents the user with an image switching confirmation request, where the user may instruct to rearrange the arranged image in accordance with the condition associated with the set of frames, or the user may instruct against rearranging the arranged image in accordance with the condition associated with the set of frames; a comparing unit configured to compare attribute information of the different image and each piece of attribute information of a plurality of images; a re-extracting unit configured to, based on the comparison, extract an image to be arranged in the frame other than the frame in which the different image is arranged, from the plurality of images, in a case that a relationship between the image to be arranged and the different image meets the condition associated with the set of frames; and a rearranging unit configured to automatically rearrange the arranged image in the frame other than the frame in which the different image is arranged, in accordance with the condition associated with the set of frames and attribute information of the different image, if the user instructs to rearrange the arranged image, and wherein the rearranging unit rearranges the image to be arranged extracted by the re-extracting unit.