Reduce memory requirement for GetWhitespaceBoundingRectangle and CropWhitespace.