public function forceMimeType(string $mime)
    {
        if (!isset($this->file_formats[$mime]))
        {
            throw new \InvalidArgumentException(
                "Cannot force output without a writer available: " . $mime
            );
        }

        $this->file_formats = [$mime => $this->file_formats[$mime]];
        return $this;
    }