Using media type from injected writer