/**
  * @inheritdoc
  */
 public function update(UpdatePhotoOptions $options)
 {
     if (!$options->validate()) {
         throw new InvalidParamException(VarDumper::dumpAsString($options->getErrors()));
     }
     $httpClient = $this->yandexFotki->getApiHttpClient();
     $request = $httpClient->put("photo/{$options->id}", $options->toArray());
     $response = $request->send();
     $photo = $this->yandexFotki->getFactory()->getPhotoModel();
     $photo->loadWithData($response->getData(), true);
     return $photo;
 }