Bugfix:Wiriting original image with correction and not noise thresholded image in illumination correction. Fixes to x-y confusion in stitching code. Also, this is the version used on valgrind.