Bremsstrahlung photons as a probe of hot nuclei