Modify text detection to return mimetype alone