Diffraction Calibration: 
*no need to save properties and environment in variables: use
"getOriginal..." instead
*put the update of the diff tool viewer out of the for loop in the reset
action