You can set the image as a background of a DIV tag place the text inside the DIV.
If you setup your CSS properly you'll only need to change the background image dynamically.
#DisplayingImage { display:block; margin:0; padding:0; text-align:center; }
#DisplayingImage SPAN { vertical-align:middle; }
<div id="DisplayingImage" style="background: removed("image.jpg") no-repeat left top transparent;"><span>HEADING TEXT</span></div>