Make use of drawing state stack to avoid overlapping configurations