public static function globAnimate($pattern, $delay = 20)
    {
        $imanee = new Imanee();

        if (! ($imanee->resource instanceof ImageAnimatableInterface)) {
            throw new UnsupportedMethodException("This method is not supported by the ImageResource in use.");
        }

        $frames = [];

        foreach (glob($pattern) as $image) {
            $frames[] = $image;
        }

        return $imanee
            ->resource
            ->animate($frames, $delay);
    }