The problem turned out to be that the System.Drawing.Common was installed implicitly and was outdated, as a result, the explicit installation of 9.0.0 helped solve some of the cleaning problems, but alas, the text is still not deleted on all files