Inversion in Optical Imaging through Atmospheric Turbulence