AMS-gamma: High energy photon detection with the Alpha Magnetic Spectrometer on the ISS