bezier added to extract edges