1. A method comprising: identifying a motion vector of an unwanted object in preview frames of a desired image obtained by a camera; setting a photographing interval in accordance with the motion vector; photographing continuous frames of the desired image in accordance with the photographing interval; and removing the unwanted object from the desired image so as to restore a background behind the unwanted object using the continuous frames and the photographing interval.