/**
  * If the current file is an image, makes that image the Record's default.
  * 
  * @param  File  $file
  * @return array
  */
 public function updateDefaultImage(File $file)
 {
     $parameters = array('GUID' => $this->guid, 'Password' => $this->pw, 'UniqueName' => $file->getGuid(), 'PageID' => $file->getPageId(), 'RecordID' => $file->getRecordId());
     $function = 'UpdateDefaultImage';
     $response = $this->SplitToArray($this->execute($function, $parameters)->UpdateDefaultImageResult);
     if ($response[0] == "0") {
         throw new MinistryPlatformException($response[2], (int) $response[1]);
     }
     return $response;
 }