Added the transformation from homogeneous coordiantes to pixels.