(generate_photo_id): Use tty_printf and not just