1. An imaging device, comprising: a memory that stores a plurality of sequential images; an image sensor that captures the sequential images, each of the sequential images comprising a representation of an object captured at a focus position of a lens, the focus position being different for each of the sequential images; and processing circuitry configured to: assemble a composite image of the object comprising a plurality of pixels by: identifying, for each pixel of the plurality of pixels, a respective pixel of one of the sequential images by comparing respective pixels of the plurality of sequential images, the identified respective pixel having a degree of sharpness at least as great as a corresponding pixel of remaining sequential images; and using information associated with the identified respective pixel to determine pixel data for each pixel of the plurality of pixels of the composite image, each of the pixels of the plurality of pixels of the composite image matching a respective pixel of one of the sequential images.