now we use imagemagick to guess the image type rather than relying on http headers