make pixel processing operations run on currentBuffer, update DilationAndErosion example with new style
update all examples to new getOutput() and getSnapshot() style API with gray as default