1. An apparatus of an electronic device, the apparatus comprising: a memory configured to store instructions; a camera module; a display; a fingerprint sensor; and a processor configured to execute the stored instructions to: receive a first input for capturing an image, in response to receiving the first input for capturing the image, capture an image from the camera module, and display the captured image on the display, identify whether a second input on the fingerprint sensor is detected for a predetermined period from time at which the first input is received, if the second input on the fingerprint sensor is detected within the predetermined period, store image data of the captured image in a security folder of the memory, the security folder being encrypted based on fingerprint information obtained from the second input, and if the predetermined period is expired from the time at which the first input is received, store the image data of the captured image in a general folder of the memory.