Wrote a file to get a random image