cspad image analysis software for the CXI instrument at LCLS