canvas - added pleaseWait helper function