clone of removeUselessStrokeAndFill.js