1. A method of controlling a digital photographing apparatus, the method comprising: obtaining a first image; inverting pixel values of a first portion of the first image; displaying a real-time preview image partially overlapped with the inverted first portion of the first image; obtaining a second image corresponding to the displayed real-time preview image; and creating a third image by combining at least a second portion of the first image and at least a portion of the second image, wherein a data value of a sub-pixel in the overlap of the preview image and the inverted first portion of the first image is adjusted to a predetermined value if the sum of a data value of a corresponding sub-pixel of the preview image and a data value of a corresponding sub-pixel of the inverted first portion of the first image is greater than the maximum value of a pixel.