The code that ran the photobooth at my wedding