Better drawing optimization