rename and delete image