updates to support 3 contiguous pixels