Artifact reduction in the CSPAD detectors used for LCLS experiments. (22nd August 2017)