added helper functions to produce contrast plots, thresholded difference images