[vdp] move edge detection to it's own block