public function generateTemplateScaledImages($filename, $id, $overwrite = false) {
        if (!$filename || !$id) {
            throw new Exception(
                'A filename and id were not provided. Filename [' . $filename . '] Id [' . $id . ']'
            );
        }
        $templates = $this->getTemplateNames();

        foreach ($templates as $t) {
            try {
                $this->scaleAndStore($filename, $id, $t, $overwrite);
            } catch(Exception $e) {
                throw new Exception(
                    "Error scaling " . $filename . " (#" . $id . "): " . $e->getMessage()
                );
            }
        }
    }