1. An electronic device comprising: an image sensor configured to capture an image; an input unit configured to received a capture input for capturing the image; a control unit configured to: generate a first image having image data with a format identical to a sensor pattern of the image sensor in response to the capture input, and generate a second image having image data with a different format from that of the first image according to the capture input; and storage configured to store an image file including a header containing property information on the first and second images, the first image, and the second image.