handles returning html
handles returning png images