public function getUrl($image, $template = null) {
        if ($this->_isFilename($image)) {
            return $this->getStaticUrl($image);
        }
        if (!$template) {
            throw new Exception(self::ERROR_SCALING_TEMPLATE_MISSING);
        }
        return $this->getScaledUrl($image, $template);
    }