Export image in htmltext attribute (refs #4151)