Update compare_histo.py

Updated to, upon successful checks, update the stored image.