+       public function getThumb(string $path, ?int $height = null, ?int $width = null, ?string $format = null): array {
+               //Without format
+               if ($format === null || !in_array($format, $this->config['formats'])) {
+                       //Set format from config
+                       $format = $this->config['thumb']['format'];
+               }
+