Converting raster to vector images