Fundamentals of Photographic Theory