Improve compositing rectangle calculations
Calculation of minimum compositing rectangles for DropShadow