Expanded overlapping_pixels to covering all cases