Extracts arrays of x and y values from an image of a curve.