support other extensions; check content-type of response
updated version
Merge pull request #43 from plotly/better_svg_support

static image support for other formats