This is a suggestion of introducing a new Python template to show how to do basic image processing in an efficient way. This is both useful as an example and to reduce boilerplate when there is a need for a quick image processing effect in a scene.
The methods foreach_get/foreach_set have been ported to image pixels in Blender 2.83.3 iirc and are little advertised in current Python templates, though they provide sth like 100x speedup compared to pixelwise copy.