Improve popup drawing.