Disabled removeUselessStrokeAndFill due to problems with inheritance