Near single-photon imaging in the shortwave infrared using homodyne detection