Corrected the order of loading image and initialization of the new value to be saved.