Adding Attachment Tab in Content Viewer

I want to show the attachment tab in content viewer so that an image can be viewed. I have made a custom artifact but all attributes are shown as key value pair. But I want it to be as it is shown in messages artifact (TSK_MESSAGE) that is pre-built.
Can it be done without content viewer module ?
Can someone help?