The different illustrative embodiments provide a method, computer system, and computer program product to fit a lens. The method comprises obtaining an image of the lens. The method also comprises identifying an edge of a lens on an eye in the image. The method also comprises associating a number of zones with the image of the lens based on the edge of the lens. The method also comprises identifying the value for each zone in the number of zones based on intensities within the lens. The method also comprises designing a new lens based on the value to reach a desired value.