new class ScopedPixelBuffer and use it in overlay displays