1. A method for storing a stabilized image, comprising: autofocusing a lens through a series of lens positions until a final lens position is determined; determining image sharpness metric information for a set of images captured at the final lens position by calculating a sharpness metric value for each pixel in a plurality of regions of interest in the set of images, wherein each region of interest comprises a plurality of adjacent pixels, wherein each pixel comprises information captured from the lens; selecting a final image frame from the set as the stabilized image based on the most favorable image sharpness metric information; encoding the final image frame to create an encoded final image frame; processing at least one image frame from the set for display before encoding the final image frame; displaying the at least one image frame to a display; and storing the encoded final image frame in a memory linked to a camera.