Photon Production in Heavy-ion Collisions Close to the Pion Threshold