added image observer to write image path to file for backup purpose
small mod for image observer