add prefix for random name
download image to DIR directory