Improved and optimized drawing in WaveformRendererRGB.