The Photon PDF within the CT18 global analysis