I had the same problem as David. In my case it depended from the
fact that ReturnHeaders was been modified to handle Latin characters
appending to it:
ns_startcontent -charset "iso-8859-1"
This arrangement doesn't work with images and so, to get portraits
displayed I had to call a non modified version of ReturnHeaders.
This is clearly a temporary solution, because you have to find
out the occurrences where you need to call the standard
ReturnHeaders.