1. A method comprising: obtaining an image of an eye in its bright-pupil condition; obtaining an image of the eye in its dark-pupil condition; and selecting, based on the quality of the obtained images, one of a bright-pupil imaging mode and a dark-pupil imaging mode for continued tracking of the eye.