1. An electronic camera with an image pickup unit configured to pick up image data of an object, the camera comprising: a temporal memory configured to temporally store the image data picked up by the image pickup unit; a determining unit configured to, in an automatic pickup mode, successively analyze the image data successively picked up by the image pickup unit and to successively determine whether the image data includes a predetermined object; a memory controller configured to temporally store the image data in the temporal memory when the determining unit determines that the image data includes the predetermined object; a comparator configured to successively compare the image data stored in the temporal memory with the image data successively picked up by the image pickup unit after the memory controller temporally stores the image data including the predetermined object in the temporal memory; an updating unit configured to update the image data stored in the temporal memory with the image data picked up by the image pickup unit each time it is determined that a quality of the image data picked up by the image pickup unit is higher than a quality of the image data stored in the temporal memory; and a storage controller configured to store the image data that is stored in the temporal memory in a storage medium when, after the memory controller temporally stores the image data in the temporal memory, the determining unit determines that the image data picked up by the image pickup unit does not include the predetermined object.