An electronic device (101, 301) comprising: a camera module (180, 320); a touch screen display; a memory (130, 315); and a processor (120, 340) operatively connected to the camera module (180, 320), the touch screen display, and the memory (130, 315); wherein the memory (130, 315) stores instructions, which while executed by the processor (120, 340), enable the processor (120, 340) to: display, on the touch screen display, a preview image in response to an activation of the camera module; in response to receiving a user input for executing a first user interface, display, on the touch screen display, the first user interface for a preview image (511, 631) comprising a three-dimensional, 3D, avatar (531, 611, 711, 811) of a user to which a motion of a subject has been applied based on the motion of the subject obtained from the camera module (180, 320), the 3D avatar (531, 611, 711, 811) being generated based on a feature point of the user extracted from the preview image (511, 631), in response to receiving a first touch input for performing a function related to the 3D avatar while the preview image is being displayed, terminate the display of the preview image and display, on the touch screen display, a second user interface within the first user interface, the second user interface comprising the 3D avatar (531, 611, 711, 811) and at least one object (721, 723, 725, 727) representing a function of the 3D avatar (531, 611, 711, 811), receive a third touch input to select an object of the at least one object (721, 723, 725, 727), and perform an edit function of the 3D avatar (531, 611, 711, 811) corresponding to the selected object in response to the third touch input, the edit function of the 3D avatar (531, 611, 711, 811) comprising a function of editing the 3D avatar (531, 611, 711, 811) and a function of editing an item of the 3D avatar (531, 611, 711, 811). a camera module (180, 320); a touch screen display; a memory (130, 315); and a processor (120, 340) operatively connected to the camera module (180, 320), the touch screen display, and the memory (130, 315); wherein the memory (130, 315) stores instructions, which while executed by the processor (120, 340), enable the processor (120, 340) to: display, on the touch screen display, a preview image in response to an activation of the camera module; in response to receiving a user input for executing a first user interface, display, on the touch screen display, the first user interface for a preview image (511, 631) comprising a three-dimensional, 3D, avatar (531, 611, 711, 811) of a user to which a motion of a subject has been applied based on the motion of the subject obtained from the camera module (180, 320), the 3D avatar (531, 611, 711, 811) being generated based on a feature point of the user extracted from the preview image (511, 631), in response to receiving a first touch input for performing a function related to the 3D avatar while the preview image is being displayed, terminate the display of the preview image and display, on the touch screen display, a second user interface within the first user interface, the second user interface comprising the 3D avatar (531, 611, 711, 811) and at least one object (721, 723, 725, 727) representing a function of the 3D avatar (531, 611, 711, 811), receive a third touch input to select an object of the at least one object (721, 723, 725, 727), and perform an edit function of the 3D avatar (531, 611, 711, 811) corresponding to the selected object in response to the third touch input, the edit function of the 3D avatar (531, 611, 711, 811) comprising a function of editing the 3D avatar (531, 611, 711, 811) and a function of editing an item of the 3D avatar (531, 611, 711, 811). display, on the touch screen display, a preview image in response to an activation of the camera module; in response to receiving a user input for executing a first user interface, display, on the touch screen display, the first user interface for a preview image (511, 631) comprising a three-dimensional, 3D, avatar (531, 611, 711, 811) of a user to which a motion of a subject has been applied based on the motion of the subject obtained from the camera module (180, 320), the 3D avatar (531, 611, 711, 811) being generated based on a feature point of the user extracted from the preview image (511, 631), in response to receiving a first touch input for performing a function related to the 3D avatar while the preview image is being displayed, terminate the display of the preview image and display, on the touch screen display, a second user interface within the first user interface, the second user interface comprising the 3D avatar (531, 611, 711, 811) and at least one object (721, 723, 725, 727) representing a function of the 3D avatar (531, 611, 711, 811), receive a third touch input to select an object of the at least one object (721, 723, 725, 727), and perform an edit function of the 3D avatar (531, 611, 711, 811) corresponding to the selected object in response to the third touch input, receive a third touch input to select an object of the at least one object (721, 723, 725, 727), and perform an edit function of the 3D avatar (531, 611, 711, 811) corresponding to the selected object in response to the third touch input, the edit function of the 3D avatar (531, 611, 711, 811) comprising a function of editing the 3D avatar (531, 611, 711, 811) and a function of editing an item of the 3D avatar (531, 611, 711, 811).