implement directional box blur