public function source(string $file, string $path = '') : ImageResize
    {
        if ($this->resizer !== null) {
            try {
                $this->resizer->loadImage($file, $path);
                $this->loaded = true;
            } catch (\Exception $e) {
                echo $e->getMessage();
            }
        }

        return $this;
    }