we are now generating different wikitext based on the mime type,
typically for images.