added drawing buffer
fixed buffer draw offset