Photography originated from the Greek words for "light" and "to draw." The earliest known photograph was made in 1825 by Nicéphore Niépce using a process called heliography. The camera obscura, which projected images through a pinhole or lens onto a surface, was used as early as ancient times but was first described in detail in the 15th century by Leonardo Da Vinci. Lenses eventually replaced pinholes, improving image quality. Modern cameras developed from the camera obscura, becoming the primary tool for photography until digital cameras replaced chemical film. While some still prefer darkrooms, photography is now dominated by digital methods.