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