def replace(self, photo_file, **kwds):
        """
        Endpoint: /photo/<id>/replace.json

        Uploads the specified photo file to replace this photo.
        """
        result = self._client.photo.replace(self, photo_file, **kwds)
        self._replace_fields(result.get_fields())