Vectorization of Raster Images Using B-Spline Surfaces