return type of download image function changed