/**
  * Remove Pic from Multimedia Object
  */
 public function removePicFromMultimediaObject(MultimediaObject $multimediaObject, $picId)
 {
     $pic = $multimediaObject->getPicById($picId);
     $picPath = $pic->getPath();
     $multimediaObject->removePicById($picId);
     $this->dm->persist($multimediaObject);
     $this->dm->flush();
     if ($this->forceDeleteOnDisk && $picPath) {
         $this->deleteFileOnDisk($picPath, $multimediaObject);
     }
     return $multimediaObject;
 }