Decode gziped content

Most of the time, it comes from Tumblr.
Update the way to handle binary file

We now rely on the content-type instead of the extension. I guess it's more accurate.