In response to the movement of the camera module 980 or the electronic device 901 including the camera module 980, the image stabilizer 1040 may move the image sensor 1030 or at least one lens included in the lens assembly 1010 in a specific direction or may control operation attributes of the image sensor 1030 (e.g., may adjust the readout timing). This makes it possible to compensate for at least part of a negative influence of the movement on an image being photographed. According to an embodiment, the image stabilizer 1040 may sense such a movement of the camera module 980 or the electronic device 901 by using a gyro sensor (not illustrated) or an acceleration sensor (not illustrated) disposed inside or outside the camera module 980. According to an embodiment, the image stabilizer 1040 may be implemented, for example, with an optical image stabilizer. The memory 1050 may at least temporarily store at least a portion of an image obtained through the image sensor 1030 for a next image processing task. For example, when image photographing is delayed due to a shutter operation or multiple images are quickly photographed, a raw (or original) image obtained (e.g., a Bayer-patterned image or a high-resolution image) may be stored in the memory 1050, and a copy image (e.g., a low-resolution image) corresponding to the raw image may be previewed through the display device 960. Afterwards, when a specified condition is satisfied (e.g., when a user's input or system command is received), at least a portion of the raw image stored in the memory 1050 may be obtained and processed, for example, by the image signal processor 1060. According to an embodiment, the memory 1050 may be implemented with at least a portion of the memory 930 or with a separate memory that operates independently of the memory 930.