function buildPhotos($completedid)
 {
     require_once PATH_CORE . '/classes/photo.class.php';
     // slight hack, assumes only one photo/video per challenge, as per our current spec, even though the schema allows more
     $photoTable = new PhotoTable($this->db);
     $photo = $photoTable->getRowObject();
     $photoids = $photoTable->getPhotosForCompletedChallenge($completedid);
     foreach ($photoids as $id) {
         if ($photo->load($id)) {
             $code .= '<img src="' . URL_SUBMITTED_IMAGES . '/' . $photo->localFilename . '" width="150" />';
         }
     }
     return $code;
 }