Refactored oscilloscope gfx code, added some new goodies to it