Add MIME type detection