pynrc.maths.image_manip pynrc.maths.image_manip Functions align_LSQ fix_nans_with_med optimal_difference scale_ref_image shift_subtract