function hasAction($action)
 {
     if ($this->findPictureByURLSegment($action)) {
         return true;
     } else {
         if (!$this->config()->get('picturesAccessibleViaURL')) {
             return true;
         } else {
             return parent::hasAction($action);
         }
     }
 }