Understanding the pinhole camera model