1. A mobile terminal comprising: a main body; a first camera provided on a front side of the main body; a second camera provided on a rear side of the main body; a sensing unit that senses an extent of movement of the main body; and a controller that controls the first and second cameras to capture images as the main body is moved within a prescribed range, wherein the first camera is controlled to capture a plurality of first images as the main body is rotated within the prescribed range, and the second camera is controlled to capture a plurality of second image as the main body is rotated within the prescribed range, wherein, when the main body is moved beyond the prescribed range, the first and second camera are controlled to stop capturing images and the first plurality of images from the first camera and the plurality of second images from the second camera are connected to generate at least one panorama picture, wherein the prescribed range is a range of rotation of the main body in which an image captured by the second camera overlaps an initial image captured by the first camera, wherein, when a user image extraction function is selected, the controller is configured to remove a prescribed object from the generated panorama picture and to fill a region corresponding to the removed prescribed object using portions of images extracted from corresponding regions of the plurality of first or second images, and wherein the removed prescribed object is an image of a user in the plurality of first images captured by the first camera, and the portions of images used to fill the region occupied by the removed image is an image behind the image of the user that is extracted from preceding or following images among the plurality of first images.