refresh lcd by double buffering