changed generate_image_url so that it goes back to generating a random image