fixed conditionally paint to honor paint boolean