If N is a positive number, i.e., if image files of the designated file type are present, the flow advances to step S51-003; otherwise, i.e., if no image file is present since, for example, processing for generating an image file of the designated file type is not executed, the flow advances to step S51-004.