performance improvement: download images using multiple threads