The cornea at the front of the eye and lens behind the pupil both help to focus the light by refracting it so that it hits the retina. On the retina, there are photoreceptors (rods and cones) that convert the light into electrical impulses. These impulses are then transmitted via the optic nerve to various parts of the brain, where they are processed into images.