making api call, and parsing image results