added 8 bit and write support and imaging

Added support for 8 bit mono as well as 16 bit, added a function to
create an image representation of the wav file and added write support
to modify the wave data