scratch/utils/pixel: attempt at template based rgba pixel manip for images