update canvas sample