Draw function call now takes optional callback.