Gravity and handedness of photons