Write web service image response to file as binary