corrected API call to have image