Modeling the Pinhole Camera