Fundamentals of Photo.graphic theory