Probing correlation between photon orbits and phase structure of charged AdS black hole in massive gravity background