in reply to Display image file in browser

Typically, you'd send an HTML response containing an img tag that requests the image. The image can be generated by a script, or not, depending on what it is you want.