added default content-type header to html responses
more robust multi-image handling