How photographer captured former Prince Andrew photo