Supporting images as responses to api calls