Lorentz violation and ultrahigh-energy photons