1. A method for autofocusing a lens of a digital imaging system, the method comprising: in response to locking of lens focus on a subject image, determining an initial subject focus distance and an initial attitude; in response to a request for an exposure, determining a final attitude; determining a final target subject distance based on the initial subject focus distance and a focus correction distance, the focus correction distance being based on the difference between the initial attitude and the final attitude; and focusing the lens at the final target subject distance.