Image api call implementation