Improved Audio portability

Added abstraction layer for audio subsystem.
Fixed a small bug in Draw to Image.
Re-factoring.