updates drawing size.