From camera obscura to camera phone

Wow, so interesting. Kinda weird that I've never really understood just how a camera takes light and actually puts it on paper.