Max number of iterations factored to beginning of PaintWoker class.