add delete_img and validate