code: def save(self, outfile):
          
          if isinstance(outfile, compat.string_type):
              outfile = open(outfile, 'wb')
          outfile.write(compat.urllib2.urlopen(self.href).read())
docs: Save the image data to a file or file-like object