Update draw logic.