added drawing by using accelerometer