should probably make this `cmd_options.type.toUpperCase()` so the user can pass in 'svg', etc.