Update canvas dimensions