Effect of the Nucleus-Nucleus Potential on the High Energy Photon Production in the Intermediate Energy Heavy Ion Collision