Improve Image drawing performance