downloading image in python version