update canvas and sprite classes