Checking content-type when downloading picture