Added random photos function.