Image gallery deletion regression #707