generates a signed distance field from RGBA pixels