d/l as byte array the images and then open file for binary and put the image into it