fix #13: instead of callback for draw added postUpdate hook for executing code at the end pf update