Fixed calculation of the area that should have pixels composited.