code: def replace_from_url(self, url, **kwds):
          
          result = self._client.photo.replace_from_url(self, url, **kwds)
          self._replace_fields(result.get_fields())
docs: Endpoint: /photo/<id>replace.json
  
          Import a photo from the specified URL to replace this photo.