Made the photobooth automatically close after uploading a photo