update canvas object