fix_bugs for localmax and regiongrow and edgedetection

fix bugs which they can't delete image directly for localmax and regiongrow and edgedetection function