Nondipole effects in photon emission by laser-driven ions