Use content-type header to choose image decoder.