Image selection and binning for improved atmospheric calibration of infrared speckle data