Correcting lateral photon scattering in an InSb infrared detector