optimized drawing to the screen