An electronic device for displaying an image, comprising: a display; and a processor configured to: control the display to display a first image, determine a number of touched spots on the display while the first image is displayed on the display, and determine whether a touched spot is dragged, wherein if it is determined that the number of touched spots on the display is a first value and that none of the touched spots is dragged, the processor is configured to: detect a movement of the electronic device by one or more sensors of the electronic device while the touched spots are on the display, identify the movement of the electronic device, wherein the movement of the electronic device is recognized as a command for shifting the first image, identify a movement distance of the electronic device and a movement direction of the electronic device based on the identified movement of the electronic device, and control the display to display a second image, based on a motion based shifting function, by shifting the first image based on the movement distance, in a direction opposite to the movement direction of the electronic device, wherein if it is determined that the number of touched spots on the display is the first value and that the touched spots are dragged, the processor is further configured to deactivate the motion based shifting function and control the display to display a second image by shifting the first image based on the image being touched and dragged. a display; and a processor configured to: control the display to display a first image, determine a number of touched spots on the display while the first image is displayed on the display, and determine whether a touched spot is dragged, control the display to display a first image, determine a number of touched spots on the display while the first image is displayed on the display, and determine whether a touched spot is dragged, wherein if it is determined that the number of touched spots on the display is a first value and that none of the touched spots is dragged, the processor is configured to: detect a movement of the electronic device by one or more sensors of the electronic device while the touched spots are on the display, identify the movement of the electronic device, wherein the movement of the electronic device is recognized as a command for shifting the first image, identify a movement distance of the electronic device and a movement direction of the electronic device based on the identified movement of the electronic device, and control the display to display a second image, based on a motion based shifting function, by shifting the first image based on the movement distance, in a direction opposite to the movement direction of the electronic device, detect a movement of the electronic device by one or more sensors of the electronic device while the touched spots are on the display, identify the movement of the electronic device, wherein the movement of the electronic device is recognized as a command for shifting the first image, identify a movement distance of the electronic device and a movement direction of the electronic device based on the identified movement of the electronic device, and control the display to display a second image, based on a motion based shifting function, by shifting the first image based on the movement distance, in a direction opposite to the movement direction of the electronic device, wherein if it is determined that the number of touched spots on the display is the first value and that the touched spots are dragged, the processor is further configured to deactivate the motion based shifting function and control the display to display a second image by shifting the first image based on the image being touched and dragged.