Add convertImageSize inside OS X's waveformImageFromSample:usingView:
Change convertImageSize to viewSize.
We don't need to take any arguments for the viewSize functions: They're inside a function and don't get called with different values.