Restored image writing