modified edit and delete image