create file explicitly before downloading image