update canvas size
minor change