Adds content type validation for images