Added random image generating and saving