protected function getOutputMethod($options)
    {
        $outputMethod = 'imagegd';
        if (isset($options['format'])) {
            $outputMethod = 'image' . image_type_to_extension($options['format'], false);
        }
        return $outputMethod;
    }