How to render a boolean field in a form as HTML with images or colored text

has_change_pending in Part/CAD/Document forms is a check box. I want to make it 

- An image, if true show one image, if false show another

Or

- A colored text, if true show in one color, if false show in another color

Trying with making the field as HTML and add some tags, not much familiar with them, so wanted to ask here.