public function process(TemplateInterface $template)
    {
        // Create a new intervention image object
        $image = $this->imageManager->make($this->image);

        $image = $template->process($image);

        // Encode the image if it hasn't
        // been encoded in the template.
        if (!$image->isEncoded()) {
            $image->encode();
        }

        return $image;
    }