To format the value of the field with an html string, use the formatValue function (schould return a string):
To render the value of the field with a DOM element (to add a behaviour), use the formatDom function (schould return a dom element):
Display an image from the field value :