Digital adaptive optics for ocular imaging