Changed get_random_photo method