allow setting image in response via write()