Assistant: Fix opening image links
When clicking on links that point directly to images like in some
example documentation pages, the image data was set as html onto the
browser and it would display some "unknown character" symbols.
Check the MIME type of the URL's file name and if it is a supported image
type show custom html with an img tag that points to that image. That
way the image is nicely shown in the browser.
Task-number: QTCREATORBUG-31339
Pick-to: 6.12
Change-Id: I0e6604d847409280a092eacf93bbba808d6e6a1e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>