public static function getImageLoader(ConfigObject $config)
    {
        $lib = self::getLibrary();

        /** @var ImageLoaderInterface $libInstance */
        $instance = self::factory($lib, ImageLoaderInterface::class, [$config]);

        if (!self::isInstanceOf($instance, ImageLoaderInterface::class)) {
            throw new ImageException('The message library must implement "' . ImageLoaderInterface::class . '".');
        }

        return $instance;
    }