1. An image processing apparatus, comprising: a receiving unit for receiving a plurality of pieces of image data; a panoramic image determining unit for determining whether or not a type of the received image data is image data of a panoramic image group; an overlap area extracting unit for extracting an overlap area that is an overlapping area in the plurality of pieces of image data, when a determination result of the panoramic image determining unit indicates the image data of the panoramic image group; a deleting unit for deleting the overlap area extracted by the overlap area extracting unit, with respect to one of the plurality of pieces of image data; a positional information attaching unit for attaching positional information indicative of other overlap area having the overlapping area, to the image data whose overlap area has been deleted by the deleting unit; and a recording unit for storing therein an image file, the image file including image data to which the positional information are attached and image data having said other overlap area.