Updated content type handling to properly support SVG images.