Earliest Possible Photography Invention (or something along the lines of that)

Photography has changed our lives greatly, in a way that can capture a moment in the world on a print. However, it is a pretty late invention, and the first was taken in 1826.
How far back is it possible for us to have invented photography, or a device that captures a still on a piece of paper using light?
 
Top