fix api compatibility error for imageDownloader