1. An image processing apparatus comprising: one or more processors configured to acquire candidate images for use in creating a composite image, determine whether the candidate images are unprocessed original images or processed images created by processing the original images, determine whether or not the number of original images included in the candidate images is equal to or greater than a threshold value set in advance based on the processed image determination result, and determine when it is determined that the number of original images is equal to or greater than the threshold value, only the original images as images for use in creating the composite image and determine when it is determined that the number of original images is less than the threshold value, the original images and the processed images as images for use in creating the composite image or stops the creation of the composite image.