1. A method for processing an image, the method comprising: determining, by a processor, a presence of a distortion between plural images, including a first image and a second image; determining at least one of the plural images as an image to be used for generating a third image, based on the presence of the distortion; and generating the third image using the determined at least one image.