I saw this question Rollback edit which inlined very low quality image? Here is a quote:
The image itself is a very low quality mashup of multiple screenshots taken with an actual camera instead of a screenshot tool
I wonder if this also can be applicable to any edits where someone inlines an image of code.
The questioner in the above question motivates the rollback with
My goal of the rollback was to teach OP and maybe the initial editor a lesson that those types of images are not a good idea
The accepted answer (with 30/-2 votes) says:
Your rollback was fine, and the comment to the editor was good. We have very good reasons for not allowing low-rep users to inline images, and people should not be "helpfully" inlining useless images like that.
To me it seems pretty fair to also apply the above reasoning on images of code, irregardless of the image quality. Am I right?
So my question is simply this: Is it correct to rollback such edits?
EDIT:
This is not a duplicate of the question I linked. Neither the question nor the answer mentions images of code at all, and it is far from obvious that the answer to both is the same.