1. An apparatus comprising: a storage device that can store a plurality of images; a memory configured to store a program; and a processor configured to execute the program stored in the memory, wherein the processor (i) selects randomly N images from a plurality of images that are stored in the storage device, (ii) for each of the selected N images, determines randomly a layout area, among N layout areas in a template, in which one image is laid out in one layout area, wherein the random selecting of the N images and the random determining of the layout areas for the selected N images are executed multiple times, whereby a plurality of pages of the selected N images are laid out in the N layout areas, are generated by the random selecting and the random determining executed multiple times, (iii) evaluates the plurality of pages, based on information relating to an omitted portion of a face included in each of the N images, wherein the omitted portion of the face is a portion out of the layout area, (iv) determines a page from the plurality of pages, based on an evaluation for each of the plurality of pages, and (v) outputs the determined page.