redid ./ROI image dataset and changed write2file code.