Generate waveform image from a wave file