private function setupIcons()
 {
     if ($handle = opendir($this->srcDirectory)) {
         while (false !== ($file = readdir($handle))) {
             if ($file != "." && $file != ".." && in_array(pathinfo($file, PATHINFO_EXTENSION), array("gif", "jpg", "jpeg", "png"))) {
                 $fullPath = $this->srcDirectory . "/" . $file;
                 $size = getimagesize($fullPath);
                 $path_parts = pathinfo($fullPath);
                 array_push($this->icons, new Icon($file, $path_parts['filename'], $size[0], $size[1]));
             }
         }
         // Get the hover indicated icons
         if (!$this->ignoreHover) {
             foreach ($this->icons as $icon) {
                 $hoverIcon = $this->searchHoverIcon($icon->name);
                 if ($hoverIcon != null) {
                     $icon->hoverIcon = $hoverIcon;
                     $icon->hasHover = true;
                 }
             }
         }
     }
     Icon::sort($this->icons);
 }