Write corrected images to data dir