A photograph is created when light hits a light sensitive surface, such as silver halide coated on film or an electronic sensor. The first camera was a pinhole camera, which created an inverted image on the opposite side from the hole that light passed through. Nicéphore Niépce added asphalt-coated plates to create the first permanent photograph in 1826. Throughout the 1800s and 1900s, photography became more popular and portable, being used to document both World Wars. Modern digital cameras use electronic sensors instead of film and have millions more pixels than early digital cameras from the 1990s.