Added delay before calling stroke() on canvas object