Improve drawing performance