Who remembers the (very) old booths to get ones picture taken with a friend, or just ones self?

How did they do that? Was that done with positive paper or did it use a negative and print along the way? What has happened to those cameras?

Anyone? Anyone?