drawing performace improvment