A method performed by an electronic device for displaying an image having a motion component and a static component, the method comprising: receiving from a camera a plurality of frames in a form of a video sequence; selecting a reference frame of the plurality of frames; displaying, on a display of the electronic device, the reference frame of the plurality of frames; while the reference frame is being displayed on the display, receiving, through the display of the electronic device, a user input for selecting a one or more objects for the motion component within the displayed reference frame; identifying the motion component within the displayed reference frame, based on the user input for selecting the motion component corresponding to the motion component within the displayed first frame; based on the identified motion component within the displayed reference frame, identifying a static component based on any non-selected areas of the reference frame; performing affine matrix calculation for frame alignment based on the plurality of frames to compensate for movement of the camera by tracking the location of static components of the reference frame over the course of the video sequence; obtaining the image having the motion component and the static component, wherein the motion component includes an animation provided based on the tracking; and displaying, on the display of the electronic device, the image having the motion component and the static component, wherein the displaying the image includes displaying a still frame, initiating the animation in response to identifying the occurrence of a triggering event based on an input from one or more sensors of the electronic device. receiving from a camera a plurality of frames in a form of a video sequence; selecting a reference frame of the plurality of frames; displaying, on a display of the electronic device, the reference frame of the plurality of frames; while the reference frame is being displayed on the display, receiving, through the display of the electronic device, a user input for selecting a one or more objects for the motion component within the displayed reference frame; identifying the motion component within the displayed reference frame, based on the user input for selecting the motion component corresponding to the motion component within the displayed first frame; based on the identified motion component within the displayed reference frame, identifying a static component based on any non-selected areas of the reference frame; performing affine matrix calculation for frame alignment based on the plurality of frames to compensate for movement of the camera by tracking the location of static components of the reference frame over the course of the video sequence; obtaining the image having the motion component and the static component, wherein the motion component includes an animation provided based on the tracking; and displaying, on the display of the electronic device, the image having the motion component and the static component, wherein the displaying the image includes displaying a still frame, initiating the animation in response to identifying the occurrence of a triggering event based on an input from one or more sensors of the electronic device.