MainWindow e RTBuffer
MainWindow: Auto update of preview buffer
RTBuffer: setPixel and addPixel