Illuminating the photon content of the proton within a global PDF analysis