public function getApi()
    {
        $imageManager = new ImageManager([
            'driver' => extension_loaded('imagick') ? 'imagick' : 'gd'
        ]);
        $manipulators = [
            new Size($this->maxImageSize),
            new Orientation(),
            new Crop(),
            new Brightness(),
            new Contrast(),
            new Gamma(),
            new Sharpen(),
            new Filter(),
            new Flip(),
            new Blur(),
            new Pixelate(),
            new Background(),
            new Border(),
            new Watermark($this->getWatermarks(), $this->watermarksPathPrefix),
            new Encode(),
        ];

        return new Api($imageManager, $manipulators);
    }