An electronic device includes one or more processors and memory storing one or more programs. The one or more programs include instructions for: initiating a first light source to emit first light while the first light source emits the first light, receiving, at a first image sensor, a first image of light from the eye, transferred through the lens assembly and an array of lenses initiating a second light source to emit second light and, while the second light source emits the second light, receiving, at a second image sensor, a second image of light from the eye, transferred through the lens assembly. The first light emitted from the first light source is transferred toward an eye through a lens assembly. The second light emitted from the second light source is transferred toward the eye.