added functions to write drawing buffer to a file
updated drawing area