It was just an example that hiding stuff in posts is possible. So bad actors will also find other ways to add stuff.
It only adds something you can use in css to customize it. In my example it adds hidden-img and then I can use that to hide the image.
I think it can work. When you have  you can use something like
.cooked img[alt="IWantToHideThis"] {
display: none;
}