Text fields are displaying if there’s text data for that field. I used your script you just posted and that didn’t work. I’m still getting
<img src="" alt="" />
when I view page source. All the fields display as they should except Images. I don’t know why I’m having a problem with this.