Changed rendering of waveforms to png to avoid lagging PDF readers.