So this show how to basically do https://bl.ocks.org/mbostock/22fd67be72552774736d using d3 v4. It basically use an imlementation of a Poisson disk distribution to do some sampling and then uses the pixel color to color in a polygon generated by a voronoi algorithm on all the sampled points.
The original picture of the taco cat I used can be found https://c1.staticflickr.com/7/6046/6303841970_a9f081904c.jpg
Put more taco cats on the internet pls
https://cdnjs.cloudflare.com/ajax/libs/d3/4.7.4/d3.js