clean up xcorr2imgs