Pixel based brush placed into new FSM code strucutre