small changes; automatic scaling of canvas